package com.novax.ex.activity.provider.service;

import com.novax.ex.activity.infrastructure.entity.MallConfig;
import com.novax.ex.activity.infrastructure.mapper.MallConfigMapper;
import com.novax.ex.common.base.BaseMapper;
import com.novax.ex.common.base.BaseService;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;

/**
 * Description:参与费用配置
 *
 * @author Deucalion@novax.email
 * @date 2023/2/21 17:21
 */
@Service
public class MallConfigService extends BaseService {
    @Resource
    private MallConfigMapper mallConfigMapper;
    @Override
    protected BaseMapper getBaseMapper() {
        return mallConfigMapper;
    }

    /** 数据查重 */
    public MallConfig findByCurrency(String currency) {
        return mallConfigMapper.selectByCurrency(currency);
    }
}
